import Vue from "vue";
import ElementUI from "element-ui";
import "element-ui/lib/theme-chalk/index.css";
import myTable from "_my_c/myTable/myTable";
import customTable from "_my_c/customTable/customTable";
import highSearch from "_my_c/highSearch/highSearch";
import tableHeader from "_my_c/customTable/tableHeader";
import customForm from "_my_c/customForm/customForm";
import dragTable from "../directives/dragTable";
import resize from "../directives/resize";
import "../assets/el/index.css";
import "../assets/less/index.less";
Vue.use(ElementUI);
Vue.component(myTable.name, myTable);
Vue.component(customTable.name, customTable);
Vue.component(highSearch.name, highSearch);
Vue.component(tableHeader.name, tableHeader);
Vue.component(customForm.name, customForm);
Vue.directive(dragTable.name, dragTable.handler);
Vue.directive(resize.name, resize.handler);
// Vue.directive("highlight", function (el) {
//   const blocks = el.querySelectorAll("pre code") || [];
//   blocks.forEach((block) => {
//     hl.highlightBlock(block);
//   });
// });
